CREATE TABLE [dbo].[TTPROC_INTE]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TTPROC_IN__NU_PR__398D8EEE] DEFAULT ((0)),
[CO_SIST] [dbo].[TD_VC_008] NULL,
[NO_RESP] [dbo].[TD_VC_100] NULL,
[FE_INIC] [dbo].[TD_DT_001] NULL,
[FE_FINA] [dbo].[TD_DT_001] NULL,
[ST_PROC] [dbo].[TD_VC_001] NULL,
[FE_TRAN_ORIG] [dbo].[TD_DT_001] NULL,
[FE_CONT] [dbo].[TD_DT_001] NULL,
[FE_DEFI] [dbo].[TD_DT_001] NULL,
[ST_ORIG] [dbo].[TD_VC_001] NULL,
[ST_PLAN] [dbo].[TD_VC_001] NULL,
[ST_BNCO] [dbo].[TD_VC_001] NULL,
[ST_CAJA] [dbo].[TD_VC_001] NULL,
[ST_COMP] [dbo].[TD_VC_001] NULL,
[ST_CXCB] [dbo].[TD_VC_001] NULL,
[ST_CXPA] [dbo].[TD_VC_001] NULL,
[ST_VENT] [dbo].[TD_VC_001] NULL,
[CO_ASIE] [dbo].[TD_VC_003] NULL,
[CO_UNID] [dbo].[TD_VC_003] NULL,
[CO_PLAN] [dbo].[TD_VC_003] NULL,
[NU_PROC_UNIF] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TTPROC_IN__NU_PR__3A81B327] DEFAULT ((0)),
[ST_BAJA] [dbo].[TD_VC_001_SINO] NULL,
[ST_REVA] [dbo].[TD_VC_001_SINO] NULL,
[ST_DEPR] [dbo].[TD_VC_001_SINO] NULL,
[ST_ACTU] [dbo].[TD_VC_001_SINO] NULL,
[ST_DESM] [dbo].[TD_VC_001_SINO] NULL,
[ST_CLAS] [dbo].[TD_VC_001_SINO] NULL,
[ST_ESTA] [dbo].[TD_VC_001_SINO] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL,
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTPROC_IN__FE_US__4222D4EF] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL,
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTPROC_IN__FE_US__4316F928] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_AC__3E52440B] CHECK NOT FOR REPLICATION (([ST_ACTU]='N' OR [ST_ACTU]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_BA__3B75D760] CHECK NOT FOR REPLICATION (([ST_BAJA]='N' OR [ST_BAJA]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_CL__403A8C7D] CHECK NOT FOR REPLICATION (([ST_CLAS]='N' OR [ST_CLAS]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_DE__3D5E1FD2] CHECK NOT FOR REPLICATION (([ST_DEPR]='N' OR [ST_DEPR]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_DE__3F466844] CHECK NOT FOR REPLICATION (([ST_DESM]='N' OR [ST_DESM]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_ES__412EB0B6] CHECK NOT FOR REPLICATION (([ST_ESTA]='N' OR [ST_ESTA]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] WITH NOCHECK ADD CONSTRAINT [CK__TTPROC_IN__ST_RE__3C69FB99] CHECK NOT FOR REPLICATION (([ST_REVA]='N' OR [ST_REVA]='S'))
GO
ALTER TABLE [dbo].[TTPROC_INTE] ADD CONSTRAINT [PK__TTPROC_I__21DF7816534D60F1] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_PROC]) ON [PRIMARY]
GO
